(()=>{"use strict";var e,t={65677:(e,t,n)=>{var r=v(n(66694)),o=v(n(79674)),a=v(n(71350));n(76528),n(47585);var l=v(n(90146)),i=v(n(82786)),u=n(54830),f=v(n(90840)),d=v(n(40710)),c=v(n(64524)),s=v(n(55046));function v(e){return e&&e.__esModule?e:{default:e}}function p(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}a.default.extend(l.default),"en"===function(e){var t,n,r,o=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){i=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(i)throw a}}}}(document.cookie.split("; "));try{for(o.s();!(t=o.n()).done;){var a=(n=t.value.split("="),r=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,f=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){f=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw o}}return i}}(n,r)||p(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],i=a[1];if("Scr1wCTFdLanguage"===l)return decodeURIComponent(i)}}catch(e){o.e(e)}finally{o.f()}return null}()?a.default.locale("en"):a.default.locale("zh-cn"),r.default.init(window.init),window.CTFd=r.default,window.helpers=s.default,window.$=o.default,window.dayjs=a.default,window.nunjucks=i.default,window.Howl=u.Howl,(0,o.default)((function(){(0,c.default)(),(0,d.default)(),(0,f.default)(r.default.config.urlRoot)}))},78929:(e,t,n)=>{n(65677);var r=l(n(66694)),o=l(n(79674)),a=n(96403);function l(e){return e&&e.__esModule?e:{default:e}}function i(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=u(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return l=e.done,e},e:function(e){i=!0,a=e},f:function(){try{l||null==n.return||n.return()}finally{if(i)throw a}}}}function u(e,t){if(e){if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n,r,o,a=i(document.cookie.split("; "));try{for(a.s();!(n=a.n()).done;){var l=(r=n.value.split("="),o=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,l,i=[],u=!0,f=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(i.push(r.value),i.length!==t);u=!0);}catch(e){f=!0,o=e}finally{try{if(!u&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw o}}return i}}(r,o)||u(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=l[0],d=l[1];if("Scr1wCTFdLanguage"===f)return"en"===decodeURIComponent(d)?e:t}}catch(e){a.e(e)}finally{a.f()}return t}function c(e){var t=(0,o.default)("input[data-team-id]:checked").map((function(){return(0,o.default)(this).data("team-id")})),n=1===t.length?"team":"teams";(0,a.ezQuery)({title:d("Delete Teams","删除队伍"),body:d("Are you sure you want to delete ".concat(t.length," ").concat(n,"?"),"你确定要删除".concat(t.length,"个队伍吗？")),success:function(){var e,n=[],o=i(t);try{for(o.s();!(e=o.n()).done;){var a=e.value;n.push(r.default.fetch("/api/v1/teams/".concat(a),{method:"DELETE"}))}}catch(e){o.e(e)}finally{o.f()}Promise.all(n).then((function(e){window.location.reload()}))}})}function s(e){var t=(0,o.default)("input[data-team-id]:checked").map((function(){return(0,o.default)(this).data("team-id")}));(0,a.ezAlert)({title:d("Edit Teams","编辑队伍"),body:d((0,o.default)('\n    <form id="teams-bulk-edit">\n      <div class="form-group">\n        <label>Banned</label>\n        <select name="banned" data-initial="">\n          <option value="">--</option>\n          <option value="true">True</option>\n          <option value="false">False</option>\n        </select>\n      </div>\n      <div class="form-group">\n        <label>Hidden</label>\n        <select name="hidden" data-initial="">\n          <option value="">--</option>\n          <option value="true">True</option>\n          <option value="false">False</option>\n        </select>\n      </div>\n    </form>\n    '),(0,o.default)('\n    <form id="teams-bulk-edit">\n      <div class="form-group">\n        <label>封禁状态</label>\n        <select name="banned" data-initial="">\n          <option value="">--</option>\n          <option value="true">已封禁</option>\n          <option value="false">未封禁</option>\n        </select>\n      </div>\n      <div class="form-group">\n        <label>显示状态</label>\n        <select name="hidden" data-initial="">\n          <option value="">--</option>\n          <option value="true">已隐藏</option>\n          <option value="false">未隐藏</option>\n        </select>\n      </div>\n    </form>\n    ')),button:d("Submit","确定"),success:function(){var e,n=(0,o.default)("#teams-bulk-edit").serializeJSON(!0),a=[],l=i(t);try{for(l.s();!(e=l.n()).done;){var u=e.value;a.push(r.default.fetch("/api/v1/teams/".concat(u),{method:"PATCH",body:JSON.stringify(n)}))}}catch(e){l.e(e)}finally{l.f()}Promise.all(a).then((function(e){window.location.reload()}))}})}(0,o.default)((function(){(0,o.default)("#teams-delete-button").click(c),(0,o.default)("#teams-edit-button").click(s)}))}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e](a,a.exports,r),a.loaded=!0,a.exports}r.m=t,e=[],r.O=(t,n,o,a)=>{if(!n){var l=1/0;for(d=0;d<e.length;d++){for(var[n,o,a]=e[d],i=!0,u=0;u<n.length;u++)(!1&a||l>=a)&&Object.keys(r.O).every((e=>r.O[e](n[u])))?n.splice(u--,1):(i=!1,a<l&&(l=a));if(i){e.splice(d--,1);var f=o();void 0!==f&&(t=f)}}return t}a=a||0;for(var d=e.length;d>0&&e[d-1][2]>a;d--)e[d]=e[d-1];e[d]=[n,o,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.j=219,(()=>{var e={219:0,671:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var o,a,[l,i,u]=n,f=0;if(l.some((t=>0!==e[t]))){for(o in i)r.o(i,o)&&(r.m[o]=i[o]);if(u)var d=u(r)}for(t&&t(n);f<l.length;f++)a=l[f],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(d)},n=self.webpackChunkctfd=self.webpackChunkctfd||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var o=r.O(void 0,[160,736,694],(()=>r(78929)));o=r.O(o)})();